package com.iflytek.autofly.setting.biz.base;

/**
 * <b>Description: </b>CommandHelper<br/>
 * <b>Change History:</b><br/>
 * <table border="1">
 * <tr>
 * <td><b>user</b></td>
 * <td><b>date</b></td>
 * <td><b>time</b></td>
 * <td><b>reason</b></td>
 * </tr>
 * <tr>
 * <td>JunLuan@iflytek.com</td>
 * <td>2015/11/4</td>
 * <td>16:53</td>
 * <td>创建此文件</td>
 * </tr>
 * </table>
 *
 * @author JunLuan@iflytek.com
 */
public class CommandHelper {
    public static void getCommand(String cmdline, String[] cmds) {
        int pos = cmdline.indexOf(".");
        if (pos == -1) {
            cmds[0] = cmdline;
            cmds[1] = "";
            return;
        }
        cmds[0] = cmdline.substring(0, pos);
        cmds[1] = cmdline.substring(pos + 1);
    }
}
